<?php

declare(strict_types=1);

namespace App\CustHub\Amqp\Producers;

use App\CustHub\Dto\SendRecordProducersDto;
use Hyperf\Amqp\Annotation\Producer;
use Hyperf\Amqp\Message\ProducerMessage;

#[Producer(exchange: 'send_record',routingKey: 'send_record')]
class SendRecordProducers extends ProducerMessage
{
    public function __construct(SendRecordProducersDto $data)
    {
        $this->payload = $data->toArray();
    }

}